package com.nalai.market.v1.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author com.nalai
 * @since 2021-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ordertable")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("item_id")
    private Integer itemId;

    @TableField("created")
    private LocalDateTime created;

    @TableField("ispay")
    private Integer ispay;

    @TableField("isconfirm")
    private Integer isconfirm;

    @TableField("issend")
    private Integer issend;

    @TableField("isreceive")
    private Integer isreceive;

    @TableField("isfinish")
    private Integer isfinish;

    @TableField("finish_time")
    private LocalDateTime finishTime;


}
